$OpenBSD: patch-gateway_Gateway_cpp,v 1.11 2016/04/20 18:38:41 robert Exp $
--- gateway/Gateway.cpp.orig	Wed Apr 20 13:13:54 2016
+++ gateway/Gateway.cpp	Wed Apr 20 19:54:13 2016
@@ -64,6 +64,10 @@
 #include <zarafa/UnixUtil.h>
 #endif
 
+#ifdef __OpenBSD__
+#include <sys/resource.h>
+#endif
+
 #ifdef ZCP_USES_ICU
 #include <unicode/uclean.h>
 #endif
@@ -299,10 +303,10 @@ int main(int argc, char *argv[]) {
 	static const configsetting_t lpDefaults[] = {
 		{ "server_bind", "" },
 #ifdef LINUX
-		{ "run_as_user", "zarafa" },
-		{ "run_as_group", "zarafa" },
+		{ "run_as_user", "_zarafa" },
+		{ "run_as_group", "_zarafa" },
 		{ "pid_file", "/var/run/zarafad/gateway.pid" },
-		{ "running_path", "/var/lib/zarafa" },
+		{ "running_path", "/var/empty" },
 		{ "process_model", "fork" },
 		{ "coredump_enabled", "no" },
 #endif
